package com.pzb.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pzb.wechat.mapper.WechatPickupSettingMapper;
import com.pzb.wechat.domain.WechatPickupSetting;
import com.pzb.wechat.service.IWechatPickupSettingService;

/**
 * 自提设置Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2022-03-09
 */
@Service
public class WechatPickupSettingServiceImpl implements IWechatPickupSettingService 
{
    @Autowired
    private WechatPickupSettingMapper wechatPickupSettingMapper;

    /**
     * 查询自提设置
     * 
     * @param extAppid 自提设置主键
     * @return 自提设置
     */
    @Override
    public WechatPickupSetting selectWechatPickupSetting(String extAppid)
    {
        return wechatPickupSettingMapper.selectWechatPickupSetting(extAppid);
    }

    /**
     * 新增自提设置
     * 
     * @param wechatPickupSetting 自提设置
     * @return 结果
     */
    @Override
    public int insertWechatPickupSetting(WechatPickupSetting wechatPickupSetting)
    {
        return wechatPickupSettingMapper.insertWechatPickupSetting(wechatPickupSetting);
    }

    /**
     * 修改自提设置
     * 
     * @param wechatPickupSetting 自提设置
     * @return 结果
     */
    @Override
    public int updateWechatPickupSetting(WechatPickupSetting wechatPickupSetting)
    {
        return wechatPickupSettingMapper.updateWechatPickupSetting(wechatPickupSetting);
    }

    /**
     * 删除自提设置信息
     * 
     * @param extAppid 自提设置主键
     * @return 结果
     */
    @Override
    public int deleteWechatPickupSetting(String extAppid)
    {
        return wechatPickupSettingMapper.deleteWechatPickupSetting(extAppid);
    }
}
